class Coaches::Salaries::List < ApplicationRecord
  belongs_to :level, :class_name => 'Coaches::Level', foreign_key: :level_id
  enum status: {rejected: -1, pending: 0, accepted: 1}
  validates_presence_of :during, :price, message: '不能为空'
  validates_uniqueness_of :during, scope: :level_id, message: '时间已经设置'
end
